
import Home from './components/home.vue'
import Index from './components/index/index.vue'
import ArticleDetail from './components/article/detail.vue'
import CarQuery from './components/car/car_query.vue'
import Test from './components/test.vue'

export default{
  lists(){
    return {
      routes: [
        {path: '/home',
         component: Home,
          children:[
            {path: '/',
              component: Index
            },{path: 'article/detail/:id',
               name:'article',
              component: ArticleDetail
            },{path: '/car/query',
              component: CarQuery
            },{path: '/test',
              component: Test
            }
          ]
        },
        { path: '*', redirect: '/home' },
      ]
    }
  }
}